package com.lims.landInfo.model;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import javacommon.base.*;

/**
 * @author zzh
 * @version 1.0
 * @since 1.0
 */@Entity
@Table(name = "LIMS_LandDictionary")
public class LandDictionary extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	//columns START
    /**
     * objid       db_column: OBJID 
     */ 	
	private java.lang.String objid;
    /**
     * sno       db_column: sno 
     */ 	
	private java.lang.Integer sno;
    /**
     * talName       db_column: talName 
     */ 	
	private java.lang.String talName;
    /**
     * colName       db_column: colName 
     */ 	
	private java.lang.String colName;
    /**
     * colno       db_column: colno 
     */ 	
	private java.lang.String colno;
    /**
     * dicKey       db_column: dicKey 
     */ 	
	private java.lang.Integer dicKey;
    /**
     * dicValue       db_column: dicValue 
     */ 	
	private java.lang.String dicValue;
    /**
     * describe       db_column: describe 
     */ 	
	private java.lang.String describe;
	//columns END


	public LandDictionary(){
	}

	public LandDictionary(
		java.lang.String objid
	){
		this.objid = objid;
	}

	

	public void setObjid(java.lang.String value) {
		this.objid = value;
	}
	
	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "uuid")
	@Column(name = "OBJID", unique = true, nullable = false, insertable = true, updatable = true, length = 32)
	public java.lang.String getObjid() {
		return this.objid;
	}
	
	@Column(name = "sno", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getSno() {
		return this.sno;
	}
	
	public void setSno(java.lang.Integer value) {
		this.sno = value;
	}
	
	@Column(name = "talName", unique = false, nullable = true, insertable = true, updatable = true, length = 255)
	public java.lang.String getTalName() {
		return this.talName;
	}
	
	public void setTalName(java.lang.String value) {
		this.talName = value;
	}
	
	@Column(name = "colName", unique = false, nullable = true, insertable = true, updatable = true, length = 255)
	public java.lang.String getColName() {
		return this.colName;
	}
	
	public void setColName(java.lang.String value) {
		this.colName = value;
	}
	
	@Column(name = "colno", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getColno() {
		return this.colno;
	}
	
	public void setColno(java.lang.String value) {
		this.colno = value;
	}
	
	@Column(name = "dicKey", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getDicKey() {
		return this.dicKey;
	}
	
	public void setDicKey(java.lang.Integer value) {
		this.dicKey = value;
	}
	
	@Column(name = "dicValue", unique = false, nullable = true, insertable = true, updatable = true, length = 255)
	public java.lang.String getDicValue() {
		return this.dicValue;
	}
	
	public void setDicValue(java.lang.String value) {
		this.dicValue = value;
	}
	
	@Column(name = "describe", unique = false, nullable = true, insertable = true, updatable = true, length = 255)
	public java.lang.String getDescribe() {
		return this.describe;
	}
	
	public void setDescribe(java.lang.String value) {
		this.describe = value;
	}
	

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Objid",getObjid())
			.append("Sno",getSno())
			.append("TalName",getTalName())
			.append("ColName",getColName())
			.append("Colno",getColno())
			.append("DicKey",getDicKey())
			.append("DicValue",getDicValue())
			.append("Describe",getDescribe())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getObjid())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof LandDictionary == false) return false;
		if(this == obj) return true;
		LandDictionary other = (LandDictionary)obj;
		return new EqualsBuilder()
			.append(getObjid(),other.getObjid())
			.isEquals();
	}
}

